package com.bigShen.pattern.factory.abst;

import com.bigShen.pattern.factory.House;
import com.bigShen.pattern.factory.func.BinJiangFactory;
import com.bigShen.pattern.factory.func.LvChengFactory;
import com.bigShen.pattern.factory.func.LvDiFactory;
import com.bigShen.pattern.factory.func.WanKeFactory;

/**
 * Created by lei.shen on 2018/9/18.
 */
public class HouseFactory extends AbstractFactory {

    @Override
    public House getBinJiang() {
        return new BinJiangFactory().getHouse();
    }

    @Override
    public House getWanKe() {
        return new WanKeFactory().getHouse();
    }

    @Override
    public House getLvDi() {
        return new LvDiFactory().getHouse();
    }

    @Override
    public House getLvCheng() {
        return new LvChengFactory().getHouse();
    }

}
